{% extends 'content.html' %}
{% load url from future %}


{% block title %}
Login
{% endblock %}

{% block root_content %}


<div class="mainLocation description">
    <p>Description of bank</p>
</div>

<div class="mainLocation" id="loginlogout">

    {% if form.errors %}
    <div class="error">
        Your username and password didn't match. Please try again
    </div>
    {% endif %}

    <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
        {% csrf_token %}
        <table>
            <tr>
                <td>{{ form.username.label_tag }}</td>
                <td>{{ form.username }}</td>
            </tr>
            <tr>
                <td>{{ form.password.label_tag }}</td>
                <td>{{ form.password }}</td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" class="submit" value="Login" />
                    <input type="hidden" name="next" value="{{ next }}" />
                </td>
            </tr>
            
        </table>
    </form>

</div>
{% endblock %}
